package net.roseindia.dao;

public class MainClaz {
	public static void main(String[] args) {
		StudentJDBCDAO student = new StudentJDBCDAO();
		StudentBean alok = new StudentBean();
		alok.setName("Alok");
		alok.setRollNo(8);
		alok.setCourse("MBA");
		alok.setAddress("Ranchi");
		StudentBean tinkoo = new StudentBean();
		tinkoo.setName("Arvind");
		tinkoo.setRollNo(6);
		// Adding Data
		student.add(alok);
		// Deleting Data
//		student.delete(7);
		// Updating Data
		student.update(tinkoo);
		// Displaying Data
		student.findAll();
		
		/*
		Data Added Successfully
		Data deleted Successfully
		Table Updated Successfully
		Roll No 1, Name Java, Course MCA, Address Motihari
		Roll No 2, Name Ravi, Course BCA, Address Patna
		Roll No 3, Name Mansukh, Course M.Sc, Address Katihar
		Roll No 4, Name Raman, Course B.Tech, Address Betiah
		Roll No 5, Name Kanhaiya, Course M.Tech, Address Delhi
		Roll No 6, Name Arvind, Course MBA, Address Alligarh
		Roll No 8, Name Alok, Course MBA, Address Ranchi
		*/
	}
}